﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service.DAL;

namespace Service.BAL
{
    public class SanPham_BAL
    {
        #region Fields
        private string maSanPham;
        private string tenSanPham;
        private int soLuong;
        private float giaBan;
        
        #endregion

        #region Properties
        public string MaSanPham
        {
            get { return maSanPham; }
            set { maSanPham = value; }
        }
        public string TenSanPham
        {
            get { return tenSanPham; }
            set { tenSanPham = value; }
        }
        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        public float GiaBan
        {
            get { return giaBan; }
            set { giaBan = value; }
        }
        #endregion

        public static List<SanPham_BAL> GetAll()
        {
            return SanPham_DAL.GetAll();
        }
        public static List<SanPham_BAL> GetProByCate(string maloai)
        {
           return SanPham_DAL.GetByCategory(maloai);
        }
    }
}
